package com.daoeping.test;

import java.lang.reflect.Proxy;

public class MyProxyFactory {
	public static Object getProxy(Object object){
		ProxyHandle handler = new ProxyHandle();
		handler.setTarget(object);
		return Proxy.newProxyInstance(DogImpl.class.getClassLoader(), object.getClass().getInterfaces(), handler);
	}
}
